package com.courseware.online.controller;

import lombok.Getter;
import lombok.Setter;

/**
 * @author : demos
 */
@Getter
@Setter
public class ResultVO<T> {
    private Boolean status;
    private int code;
    private String message;
    private T data;

    public ResultVO() {
        this.status = true;
    }

    public ResultVO(T data) {
        this.status = true;
        this.data = data;
    }

    public ResultVO(int code, String message) {
        this.status = false;
        this.code = code;
        this.message = message;
        this.data = null;
    }
}
